package com.mju.feign.clients;



import com.mju.controller.common.JsonResult;
import com.mju.pojo.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("address-service")
public interface AddressClient {
    @GetMapping("/addresses/getAddress/{uid}/{aid}")
    JsonResult<Address> getById(@PathVariable("uid") Integer uid, @PathVariable("aid") Integer aid);

    @GetMapping("/addresses/getAddress/{aid}")
    JsonResult<Address> getAddress(@PathVariable("aid") Integer aid);


}
